package com.its.service;

import com.github.pagehelper.PageInfo;
import com.its.pojo.BusInsurancePolicy;
import com.baomidou.mybatisplus.extension.service.IService;
import com.its.web.param.BusInsurancePolicyControllerListParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 朱厚强
 */
public interface BusInsurancePolicyService extends IService<BusInsurancePolicy> {
    /**
     * 查询保单数据
     * @return
     */
    PageInfo<BusInsurancePolicy> selectList(BusInsurancePolicyControllerListParam busInsurancePolicyControllerListParam);
    /**
     * 根据被保人姓名以及被保人身份证号获取报案信息
     */
    BusInsurancePolicy getByInsuredNameAndCardID(String name, String cardID);

    /**
     * 根据身份证号查询
     */
    List<BusInsurancePolicy> getByinsuredId(String insuredId);
}
